<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Symbian/S60 Camera Wrapper Library: CCameraEngine Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.1 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<h1>CCameraEngine Class Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CCameraEngine" -->
<p>Camera engine class.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="cameraengine_8h_source.html">cameraengine.h</a>&gt;</code></p>

<p><a href="class_c_camera_engine-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a0d9a8a204197476c630edf136c2dceed">TCameraEngineState</a> { <br/>
&nbsp;&nbsp;<b>EEngineNotReady</b>, 
<b>EEngineIdle</b>, 
<b>EEngineViewFinding</b>, 
<b>EEngineCapturing</b>, 
<br/>
&nbsp;&nbsp;<b>EEngineFocusing</b>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Enumeration for possible camera engine states. </p>
<br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a660013a8c9f62f9985ef6452ee7aac47">~CCameraEngine</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C <a class="el" href="class_c_camera_engine.html#a0d9a8a204197476c630edf136c2dceed">TCameraEngineState</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a61bb8849cbf8168f49cd1fd41b38e307">State</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C TBool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#aba51c6233a1c5ad992f6aeea24160a84">IsCameraReady</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C TBool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#adc76a2eb75ac7dced534689ba227c39f">IsAutoFocusSupported</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a416b240324a6b9506943c51a8590997e">CaptureL</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#aeab28a92361088d15c19d7321d69c7ef">ReserveAndPowerOn</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a43e99bc6010b90bd8eec70b2b115f7c8">ReleaseAndPowerOff</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a3feb35e2ebd2a7ffc653c469f7c65e65">PrepareL</a> (TSize &amp;aCaptureSize, CCamera::TFormat aFormat=CCamera::EFormatExif)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a90f949656f0abef2307ef1bc449ba89f">StartViewFinderL</a> (TSize &amp;aSize)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a80f01d0ef20e133767fddc60c5174010">StopViewFinder</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a2356ff9c8f6deb1b60e52329c0859b5a">ReleaseViewFinderBuffer</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a507fa3f0d5d5033c0e20d8e4b1fa3f8e">ReleaseImageBuffer</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a843e310280390419a7e0197be038ecb3">StartFocusL</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a5acff49437b2a3ce45165aa55daea5d3">FocusCancel</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#adca6dadcd6798ae6004e5def691a9613">SupportedFocusRanges</a> (TInt &amp;aSupportedRanges) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#afe74d441b01ce5ac4b9551c1dbe90680">SetFocusRange</a> (TInt aFocusRange)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C CCamera *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a4d1a750837cab688dbe850d03fa2823f">Camera</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C <br class="typebreak"/>
CCamera::CCameraAdvancedSettings *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a87fd4059b7a108b1487001305c6c16dd">AdvancedSettings</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#afda8102b53ef29a1b1bfe5a2d59597a2">MaxDigitalZoom</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a0709c27813dae128203e9bce9c786132">DigitalZoom</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#ac822239a7864dced7db09ab1692714c3">AdjustDigitalZoom</a> (TBool aTele)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a0f03956de1125be3b4789854ff086358">SupportedExposureModes</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a0a3601a8af1b3563f19755f61238980d">Exposure</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#abe84f9a3ff05d0eefe9c8520c9ea46cc">SetExposure</a> (TInt aExposure)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a8fd1a4826af326cddae3f5eb5ceb084a">SupportedFlashModes</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a99fe7060465ad1b984086ba082ff9ce8">Flash</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">IMPORT_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#ab9f565d62d242c6093dea14aa5652a92">SetFlash</a> (TInt aFlash)</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static IMPORT_C <a class="el" href="class_c_camera_engine.html">CCameraEngine</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a05f27e9437f953ff14a5dfa7723a9b67">NewL</a> (TInt aCameraHandle, TInt aPriority, <a class="el" href="class_m_camera_engine_observer.html">MCameraEngineObserver</a> *aObserver)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static IMPORT_C TInt&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_camera_engine.html#a20f9dada29b3ac0fa77628d403cf7a3f">CamerasAvailable</a> ()</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Camera engine class. </p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a660013a8c9f62f9985ef6452ee7aac47"></a><!-- doxytag: member="CCameraEngine::~CCameraEngine" ref="a660013a8c9f62f9985ef6452ee7aac47" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C CCameraEngine::~CCameraEngine </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor. Stops the viewfinder and releases all resources. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a05f27e9437f953ff14a5dfa7723a9b67"></a><!-- doxytag: member="CCameraEngine::NewL" ref="a05f27e9437f953ff14a5dfa7723a9b67" args="(TInt aCameraHandle, TInt aPriority, MCameraEngineObserver *aObserver)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static IMPORT_C <a class="el" href="class_c_camera_engine.html">CCameraEngine</a>* CCameraEngine::NewL </td>
          <td>(</td>
          <td class="paramtype">TInt&nbsp;</td>
          <td class="paramname"> <em>aCameraHandle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">TInt&nbsp;</td>
          <td class="paramname"> <em>aPriority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_m_camera_engine_observer.html">MCameraEngineObserver</a> *&nbsp;</td>
          <td class="paramname"> <em>aObserver</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructs a new camera engine instance. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aCameraHandle</em>&nbsp;</td><td>Handle (index) to a camera. </td></tr>
  </table>
  </dd>
</dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="class_c_camera_engine.html#a20f9dada29b3ac0fa77628d403cf7a3f">CamerasAvailable()</a>. </dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aPriority</em>&nbsp;</td><td>Value from -100 to 100 indicating relative priority of client to use camera. Ignored if the client does not have MultimediaDD capability. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>aObserver</em>&nbsp;</td><td>Pointer to class derived from <a class="el" href="class_m_camera_engine_observer.html" title="Camera engine observer interface (pure virtual).">MCameraEngineObserver</a> designed to receive notifications of asynchronous event completion. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><a class="el" href="class_c_camera_engine.html" title="Camera engine class.">CCameraEngine</a> The new camera engine instance. </dd></dl>
<dl class="leaves"><dt><b><a class="el" href="leaves.html#_leaves000001">Leave code:</a></b></dt><dd>May leave with one of the system-wide error codes. </dd></dl>

</div>
</div>
<a class="anchor" id="a61bb8849cbf8168f49cd1fd41b38e307"></a><!-- doxytag: member="CCameraEngine::State" ref="a61bb8849cbf8168f49cd1fd41b38e307" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C <a class="el" href="class_c_camera_engine.html#a0d9a8a204197476c630edf136c2dceed">TCameraEngineState</a> CCameraEngine::State </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the current state of the camera engine. </p>

</div>
</div>
<a class="anchor" id="aba51c6233a1c5ad992f6aeea24160a84"></a><!-- doxytag: member="CCameraEngine::IsCameraReady" ref="aba51c6233a1c5ad992f6aeea24160a84" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C TBool CCameraEngine::IsCameraReady </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns true if the camera has been reserved and powered on. </p>

</div>
</div>
<a class="anchor" id="adc76a2eb75ac7dced534689ba227c39f"></a><!-- doxytag: member="CCameraEngine::IsAutoFocusSupported" ref="adc76a2eb75ac7dced534689ba227c39f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C TBool CCameraEngine::IsAutoFocusSupported </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns true if the camera supports AutoFocus. </p>

</div>
</div>
<a class="anchor" id="a416b240324a6b9506943c51a8590997e"></a><!-- doxytag: member="CCameraEngine::CaptureL" ref="a416b240324a6b9506943c51a8590997e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C void CCameraEngine::CaptureL </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Captures an image. When complete, observer will receive MceoCapturedDataReady() or MceoCapturedBitmapReady() callback, depending on which image format was used in <a class="el" href="class_c_camera_engine.html#a3feb35e2ebd2a7ffc653c469f7c65e65">PrepareL()</a>. </p>
<dl class="leaves"><dt><b><a class="el" href="leaves.html#_leaves000002">Leave code:</a></b></dt><dd>May leave with KErrNotReady if camera is not reserved or prepared for capture. </dd></dl>

</div>
</div>
<a class="anchor" id="aeab28a92361088d15c19d7321d69c7ef"></a><!-- doxytag: member="CCameraEngine::ReserveAndPowerOn" ref="aeab28a92361088d15c19d7321d69c7ef" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C void CCameraEngine::ReserveAndPowerOn </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Reserves and powers on the camera. When complete, observer will receive MceoCameraReady() callback </p>

</div>
</div>
<a class="anchor" id="a43e99bc6010b90bd8eec70b2b115f7c8"></a><!-- doxytag: member="CCameraEngine::ReleaseAndPowerOff" ref="a43e99bc6010b90bd8eec70b2b115f7c8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C void CCameraEngine::ReleaseAndPowerOff </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Releases and powers off the camera </p>

</div>
</div>
<a class="anchor" id="a3feb35e2ebd2a7ffc653c469f7c65e65"></a><!-- doxytag: member="CCameraEngine::PrepareL" ref="a3feb35e2ebd2a7ffc653c469f7c65e65" args="(TSize &amp;aCaptureSize, CCamera::TFormat aFormat=CCamera::EFormatExif)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C void CCameraEngine::PrepareL </td>
          <td>(</td>
          <td class="paramtype">TSize &amp;&nbsp;</td>
          <td class="paramname"> <em>aCaptureSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">CCamera::TFormat&nbsp;</td>
          <td class="paramname"> <em>aFormat</em> = <code>CCamera::EFormatExif</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Prepares for image capture. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aCaptureSize</em>&nbsp;</td><td>requested capture size. On return, contains the selected size (closest match) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>aFormat</em>&nbsp;</td><td>Image format to use. Default is JPEG with EXIF information as provided by the camera module </td></tr>
  </table>
  </dd>
</dl>
<dl class="leaves"><dt><b><a class="el" href="leaves.html#_leaves000003">Leave code:</a></b></dt><dd>Possible leave codes: KErrNotSupported, KErrNoMemory, KErrNotReady </dd></dl>

</div>
</div>
<a class="anchor" id="a90f949656f0abef2307ef1bc449ba89f"></a><!-- doxytag: member="CCameraEngine::StartViewFinderL" ref="a90f949656f0abef2307ef1bc449ba89f" args="(TSize &amp;aSize)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C void CCameraEngine::StartViewFinderL </td>
          <td>(</td>
          <td class="paramtype">TSize &amp;&nbsp;</td>
          <td class="paramname"> <em>aSize</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Starts the viewfinder. Observer will receive MceoViewFinderFrameReady() callbacks periodically. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aSize</em>&nbsp;</td><td>requested viewfinder size. On return, contains the selected size.</td></tr>
  </table>
  </dd>
</dl>
<dl class="leaves"><dt><b><a class="el" href="leaves.html#_leaves000004">Leave code:</a></b></dt><dd>KErrNotSupported if viewfinding with bitmaps is not supported, KErrNotReady </dd></dl>

</div>
</div>
<a class="anchor" id="a80f01d0ef20e133767fddc60c5174010"></a><!-- doxytag: member="CCameraEngine::StopViewFinder" ref="a80f01d0ef20e133767fddc60c5174010" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C void CCameraEngine::StopViewFinder </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Stops the viewfinder if active. </p>

</div>
</div>
<a class="anchor" id="a2356ff9c8f6deb1b60e52329c0859b5a"></a><!-- doxytag: member="CCameraEngine::ReleaseViewFinderBuffer" ref="a2356ff9c8f6deb1b60e52329c0859b5a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C void CCameraEngine::ReleaseViewFinderBuffer </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Releases memory for the last received viewfinder frame. Client must call this in response to MceoViewFinderFrameReady() callback, after drawing the viewfinder frame is complete. </p>

</div>
</div>
<a class="anchor" id="a507fa3f0d5d5033c0e20d8e4b1fa3f8e"></a><!-- doxytag: member="CCameraEngine::ReleaseImageBuffer" ref="a507fa3f0d5d5033c0e20d8e4b1fa3f8e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C void CCameraEngine::ReleaseImageBuffer </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Releases memory for the last captured image. Client must call this in response to MceoCapturedDataReady() or MceoCapturedBitmapReady()callback, after processing the data/bitmap is complete. </p>

</div>
</div>
<a class="anchor" id="a843e310280390419a7e0197be038ecb3"></a><!-- doxytag: member="CCameraEngine::StartFocusL" ref="a843e310280390419a7e0197be038ecb3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C void CCameraEngine::StartFocusL </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Starts focusing. Does nothing if AutoFocus is not supported. When complete, observer will receive MceoFocusComplete() callback. </p>
<dl class="leaves"><dt><b><a class="el" href="leaves.html#_leaves000005">Leave code:</a></b></dt><dd>KErrInUse, KErrNotReady </dd></dl>

</div>
</div>
<a class="anchor" id="a5acff49437b2a3ce45165aa55daea5d3"></a><!-- doxytag: member="CCameraEngine::FocusCancel" ref="a5acff49437b2a3ce45165aa55daea5d3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C void CCameraEngine::FocusCancel </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Cancels the ongoing focusing operation. </p>

</div>
</div>
<a class="anchor" id="adca6dadcd6798ae6004e5def691a9613"></a><!-- doxytag: member="CCameraEngine::SupportedFocusRanges" ref="adca6dadcd6798ae6004e5def691a9613" args="(TInt &amp;aSupportedRanges) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C void CCameraEngine::SupportedFocusRanges </td>
          <td>(</td>
          <td class="paramtype">TInt &amp;&nbsp;</td>
          <td class="paramname"> <em>aSupportedRanges</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a bitfield of supported focus ranges. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aSupportedRanges</em>&nbsp;</td><td>On return, contains a bitfield of either TAutoFocusRange (S60 3.0/3.1 devices) or TFocusRange (S60 3.2 and onwards) values. </td></tr>
  </table>
  </dd>
</dl>
<dl class="note"><dt><b>Note:</b></dt><dd>Interpret the returned values as a bitfield of TFocusRange values if <a class="el" href="class_c_camera_engine.html#a87fd4059b7a108b1487001305c6c16dd">AdvancedSettings()</a> is not NULL, otherwise as TAutoFocusRange. </dd></dl>

</div>
</div>
<a class="anchor" id="afe74d441b01ce5ac4b9551c1dbe90680"></a><!-- doxytag: member="CCameraEngine::SetFocusRange" ref="afe74d441b01ce5ac4b9551c1dbe90680" args="(TInt aFocusRange)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C void CCameraEngine::SetFocusRange </td>
          <td>(</td>
          <td class="paramtype">TInt&nbsp;</td>
          <td class="paramname"> <em>aFocusRange</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the focus range </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aFocusRange</em>&nbsp;</td><td>one of the values returned by <a class="el" href="class_c_camera_engine.html#adca6dadcd6798ae6004e5def691a9613">SupportedFocusRanges()</a>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a4d1a750837cab688dbe850d03fa2823f"></a><!-- doxytag: member="CCameraEngine::Camera" ref="a4d1a750837cab688dbe850d03fa2823f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C CCamera* CCameraEngine::Camera </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a pointer to CCamera object used by the engine. Allows getting access to additional functionality from CCamera. </p>
<dl class="note"><dt><b>Note:</b></dt><dd>Do not use for functionality already provided by other <a class="el" href="class_c_camera_engine.html" title="Camera engine class.">CCameraEngine</a> methods! </dd></dl>

</div>
</div>
<a class="anchor" id="a87fd4059b7a108b1487001305c6c16dd"></a><!-- doxytag: member="CCameraEngine::AdvancedSettings" ref="a87fd4059b7a108b1487001305c6c16dd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C CCamera::CCameraAdvancedSettings* CCameraEngine::AdvancedSettings </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a pointer to CCameraAdvancedSettings object used by the engine. May be NULL if adv. settings is not available. Allows getting access to additional functionality from CCameraAdvancedSettings. </p>
<dl class="note"><dt><b>Note:</b></dt><dd>Do not use for functionality already provided by other <a class="el" href="class_c_camera_engine.html" title="Camera engine class.">CCameraEngine</a> methods! </dd></dl>

</div>
</div>
<a class="anchor" id="a20f9dada29b3ac0fa77628d403cf7a3f"></a><!-- doxytag: member="CCameraEngine::CamerasAvailable" ref="a20f9dada29b3ac0fa77628d403cf7a3f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static IMPORT_C TInt CCameraEngine::CamerasAvailable </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Static function that returns the number of cameras on the device. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TInt Number of cameras available on the device. Typically, the first (index 0) is the main camera, and the second, if available, is the front-facing camera. </dd></dl>

</div>
</div>
<a class="anchor" id="afda8102b53ef29a1b1bfe5a2d59597a2"></a><!-- doxytag: member="CCameraEngine::MaxDigitalZoom" ref="afda8102b53ef29a1b1bfe5a2d59597a2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C TInt CCameraEngine::MaxDigitalZoom </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Maximum digital zoom value. 0 if digital zoom is not supported. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TInt Maximum value supported by the digital zoom. </dd></dl>

</div>
</div>
<a class="anchor" id="a0709c27813dae128203e9bce9c786132"></a><!-- doxytag: member="CCameraEngine::DigitalZoom" ref="a0709c27813dae128203e9bce9c786132" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C TInt CCameraEngine::DigitalZoom </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the current digital zoom value. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>TInt Current digital zoom value. </dd></dl>

</div>
</div>
<a class="anchor" id="ac822239a7864dced7db09ab1692714c3"></a><!-- doxytag: member="CCameraEngine::AdjustDigitalZoom" ref="ac822239a7864dced7db09ab1692714c3" args="(TBool aTele)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C TInt CCameraEngine::AdjustDigitalZoom </td>
          <td>(</td>
          <td class="paramtype">TBool&nbsp;</td>
          <td class="paramname"> <em>aTele</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adjusts digital zoom. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aTele</em>&nbsp;</td><td>Set to ETrue to increase zoom (tele) or EFalse to decrease zoom (wide). </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>TInt Returns the new digital zoom level, or KErrNotSupported. </dd></dl>

</div>
</div>
<a class="anchor" id="a0f03956de1125be3b4789854ff086358"></a><!-- doxytag: member="CCameraEngine::SupportedExposureModes" ref="a0f03956de1125be3b4789854ff086358" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C TInt CCameraEngine::SupportedExposureModes </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a bitfield of supported exposure modes. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>CCamera::TExposure. </dd></dl>

</div>
</div>
<a class="anchor" id="a0a3601a8af1b3563f19755f61238980d"></a><!-- doxytag: member="CCameraEngine::Exposure" ref="a0a3601a8af1b3563f19755f61238980d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C TInt CCameraEngine::Exposure </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the current exposure mode. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>CCamera::TExposure. </dd></dl>

</div>
</div>
<a class="anchor" id="abe84f9a3ff05d0eefe9c8520c9ea46cc"></a><!-- doxytag: member="CCameraEngine::SetExposure" ref="abe84f9a3ff05d0eefe9c8520c9ea46cc" args="(TInt aExposure)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C TInt CCameraEngine::SetExposure </td>
          <td>(</td>
          <td class="paramtype">TInt&nbsp;</td>
          <td class="paramname"> <em>aExposure</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set camera exposure mode. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aExposure</em>&nbsp;</td><td>One of the modes returned by <a class="el" href="class_c_camera_engine.html#a0f03956de1125be3b4789854ff086358">SupportedExposureModes()</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>KErrNone or KErrNotSupported. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>CCamera::TExposure. </dd></dl>

</div>
</div>
<a class="anchor" id="a8fd1a4826af326cddae3f5eb5ceb084a"></a><!-- doxytag: member="CCameraEngine::SupportedFlashModes" ref="a8fd1a4826af326cddae3f5eb5ceb084a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C TInt CCameraEngine::SupportedFlashModes </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a bitfield of supported flash modes. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>CCamera::TFlash. </dd></dl>

</div>
</div>
<a class="anchor" id="a99fe7060465ad1b984086ba082ff9ce8"></a><!-- doxytag: member="CCameraEngine::Flash" ref="a99fe7060465ad1b984086ba082ff9ce8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C TInt CCameraEngine::Flash </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the current flash mode. </p>
<dl class="see"><dt><b>See also:</b></dt><dd>CCamera::TFlash. </dd></dl>

</div>
</div>
<a class="anchor" id="ab9f565d62d242c6093dea14aa5652a92"></a><!-- doxytag: member="CCameraEngine::SetFlash" ref="ab9f565d62d242c6093dea14aa5652a92" args="(TInt aFlash)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">IMPORT_C TInt CCameraEngine::SetFlash </td>
          <td>(</td>
          <td class="paramtype">TInt&nbsp;</td>
          <td class="paramname"> <em>aFlash</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set camera flash mode. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aFlash</em>&nbsp;</td><td>One of the modes from SupportedFlashModes. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>KErrNone or KErrNotSupported. </dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd>CCamera::TFlash. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="cameraengine_8h_source.html">cameraengine.h</a></li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Enumerations</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>Generated on Sat Sep 11 2010 22:34:42 for Symbian/S60 Camera Wrapper Library by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
